﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SM2TestRunner
{
    public class TestSuite : TestCase
    {
        private List<TestCase> listTestcases = new List<TestCase>();
        private string stringTestSuiteSERVER;
        private string stringTestSuiteBROWSER;

        public void addTestCase(TestCase tcItem)
        {
            this.listTestcases.Add(tcItem);
        }

        public TestCase getTestCase()
        {
            TestCase tcItem = null;
            if (listTestcases.Count > 0)
            {
                tcItem = this.listTestcases.First();
                if (tcItem != null)
                    this.listTestcases.Remove(tcItem);
            }
            return tcItem;
        }

        public int countTestCase()
        {
            return this.listTestcases.Count;
        }

        public void setTestSuiteSERVER(string strTSServer)
        {
            this.stringTestSuiteSERVER = strTSServer;
        }

        public void setTestSuiteBROWSER(string strTSBrowser)
        {
            this.stringTestSuiteBROWSER = strTSBrowser;
        }

        public string getTestSuiteSERVER()
        {
            return this.stringTestSuiteSERVER;
        }

        public string getTestSuiteBROWSER()
        {
            return this.stringTestSuiteBROWSER;
        }
    }
}
